// #include <initializer_list>
#include <iostream>
using namespace std;

template<typename T>
class C {
  T v[4];
public:
#if 1
  C(const initializer_list<T>& l) {
    cout << l.size() << endl;
    auto it = l.begin(), ie = l.end();
    for(int i = 0; i < 4; ++i){
      if(it != ie){
        v[i] = *it++;
      }else {
        v[i] = 0;
      }
    }
  }
#endif
};

int main() {
  C<double> c0{};
  C<double> c1{1};
  C<double> c4{1,2,3,4};
  C<double> c5{1,2,3,4,5};
}